package cn.iocoder.boot.dto;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.sql.Timestamp;

/**
 * 平台API管理的数据传输对象
 */
@Data
@Schema(description = "平台API管理的数据传输对象")
public class KbPlatformApiDTO extends PageParam {

    @Schema(description = "主键ID", example = "1")
    private Long id;

    @Schema(description = "授权平台",requiredMode = Schema.RequiredMode.REQUIRED, example = "WeChat")
    private String authorizationPlatform;

    @Schema(description = "回调地址", example = "http://example.com/callback")
    private String callbackAddress;

    @Schema(description = "调用量(次/日)",requiredMode = Schema.RequiredMode.REQUIRED, example = "1000")
    private Long callNumber;

    @Schema(description = "剩余量（日）", example = "500")
    private Long remainingNumber;

    @Schema(description = "状态",requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private String status;

    @Schema(description = "描述", example = "这是一个示例API")
    private String remark;

    @Schema(description = "创建时间", example = "2023-10-01T12:00:00.000Z")
    private Timestamp createTime;

    @Schema(description = "创建人", example = "admin")
    private String creator;

    @Schema(description = "更新时间", example = "2023-10-02T12:00:00.000Z")
    private Timestamp updateTime;

    @Schema(description = "更新人", example = "user")
    private String updater;

    @Schema(description = "通知工号", example = "23988")
    private String noticeNumber;

    @Schema(description = "通知邮件", example = "chenzx@kingbrother.com")
    private String noticeEmail;

    @Schema(description = "账号", example = "陈志翔")
    private String userName;
    @Schema(description = "账号id", example = "1")
    private Long userId;
    @Schema(description = "告警阈值", example = "10")
    private Long alarmThreshold;

    @Schema(description = "告警值", example = "10")
    private Long alarmValue;
}
